﻿using DotNetCore.CAP;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace ServiceB.Controllers
{
    [ApiController]
    [Route("/[controller]")]
    public class TestsController : Controller
    {
        [HttpGet]
        [Route("Index")]
        public IActionResult Index()
        {
            return Ok("ServiceB");
        }


        [CapSubscribe("order.services.createorder")]
        public async Task CreateOrder(string text)
        {
            System.Console.WriteLine("订单创建完成");
        }
    }
}
